package com.nnnu.wsnackshop.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * 骑手数据传输对象
 */
@Data
@Schema(description = "骑手数据传输对象")
public class RiderDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "骑手ID")
    private Integer id;

    @NotBlank(message = "骑手姓名不能为空")
    @Schema(description = "骑手姓名")
    private String name;

    @NotBlank(message = "联系电话不能为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    @Schema(description = "联系电话")
    private String phone;

    @Schema(description = "交通工具: electric_bike=电动车, motorcycle=摩托车, bicycle=自行车, walk=步行")
    private String vehicleType;

    @Schema(description = "状态: 0=离线, 1=空闲, 2=忙碌")
    private Integer status;
}